﻿using Core.CommonModel;
using SqlSugarAndEntity;
using SqlSugarAndEntity.DataTransferObject.logDTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace IServices
{
    public interface ILogService:IBaseService<sys_loginfo>
    {
        /// <summary>
        /// 获取日志信息
        /// </summary>
        /// <param name="StartTime">起始日期</param>
        /// <param name="EndTime">结束日期</param>
        /// <param name="Method">请求方式</param>
        /// <param name="ControllerName">控制器名称</param>
        /// <param name="Action">请求动作</param>
        /// <param name="page">页码</param>
        /// <param name="limit">每页条数</param>
        /// <returns></returns>
        ResponseModel GetOrderbyInfoByPage(DateTime? StartTime, DateTime? EndTime, string Method,string ControllerName, string Action, int page, int limit);
        /// <summary>
        /// 获取全部的控制器名称和动作
        /// </summary>
        /// <returns></returns>
        List<ControllerDTO> GetControllerName();
    }
}
